<div ng-controller="KefuCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'客服消息'| translate}}</li>
        <li>{{'List'|translate}}</li>
        <span class="sui-form sui-form pull-right">
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'名称'|translate}}</th>
                <th>{{'进入会话自动回复是否开启'|translate}}</th>
                <th>{{'收到消息自动回复是否开启'|translate}}</th>
                <!-- <th>{{'进入会话自动回复消息内容'|translate}}</th>
                <th>{{'收到会话自动回复消息内容'|translate}}</th> -->
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="cfg in autorspcfg" ng-if="autorspcfg.length>0">
                <td>{{cfg.nick_name}} 
                    <div>
                        <span ng-if="cfg.service_type_id==2" class="sui-label label-success">小程序</span>
                        <span ng-if="cfg.service_type_id==1" class="sui-label label-warning">公众号</span>
                    </div>
                </td>
                <td>
                    <span>{{cfg.session_reply_open == 1?"是":"否"}}</span>
                </td>
                <td>
                    <span>{{cfg.rcvmsg_reply_open == 1?"是":"否"}}</span>
                </td>
                <!-- <td>
                    <span>{{cfg.session_reply_info}}</span>
                </td>
                <td>
                    <span>{{cfg.rcvmsg_reply_info}}</span>
                </td> -->
                <td>
                    <span>
                        <a href="#/kefu/add?wxapp_id={{cfg.app_id}}" class="sui-btn btn-success">{{'edit'|translate}}
                        </a>                        
                    </span>
                </td>
            </tr>
        </tbody>
    </table>
</div>